import { Controller, Get, Post } from '@nestjs/common';
import { ApiTags, ApiOperation, ApiProperty } from "@nestjs/swagger";

@Controller('article')
@ApiTags("文章")
export class ArticleController {
    @Get('list')
    @ApiOperation({summary:'文章列表'})
    index():string {
        return "文章列表"
    }

    @Post('createArticle')
    @ApiOperation({summary:'创建文章'})
    create():Object {
        return {
            success: true
        }
    }

}
